var db = require('../model/db.js');
module.exports = (req,res)=>{
    var _id = req.body._id;
    // console.log(objectId)
    db.delete('list',{
        filter:{
            _id : _id,
        },
        callback:(err,result)=>{
            if(err){
                res.json(err);
                return;;
            }
            res.json(result);
        }
    });
}